var should = require('should');
var analyze = require('kc-analyze');
var config = require('../config');
var configUtil = require('../../app/util/configUtil');
var unionBossModel = require('../../app/models/unionBossModel.js');
var buildType = require('../../app/consts/buildType');
var unionBossService = require('../../app/services/unionBossService.js');

suite('测试UnionBossService', function () {
    setup(function (done) {
        var analyze_config = configUtil.load('analyze');
        var game_config = configUtil.load('game');
        analyze.initialize({
            host: analyze_config.host,
            server_id: game_config.server_id
        });
        done();
    });

    suite('发放伤害排名奖励', function () {
        test('doDamageRankReward', function (done) {
            unionBossModel.findById(10014, function (err, union_boss_model) {
                unionBossService.doDamageRankReward(union_boss_model, function (err, res) {
                    console.log("err:", err);
                    done();
                });
            });
        });
    });
});
